package cn.nawang.ebeim.client.bean;

/**
 * @ClassName: License
 * @Description: 授权信息
 * @author fanyb
 * @date Aug 20, 2015 4:22:05 PM
 * @version v1.0
 */
public class License implements Cloneable {
  // 授权开始时间
  private long startTime = 0;
  // 授权到期时间
  private long endTime = 0;
  // 授权绑定设备时间
  private long bindTime = 0;
  // 绑定用户--操作用户编号
  private String bindOptUser = null;
  // 授权编号
  private String licenseID = null;
  // 授权密码 对用户不可见
  private String licensePassword = null;
  // 终端编号
  private String terminalID = null;
  // 客户名称
  private String customName = null;
  // 客户编号
  private String customID = null;
  // 设备特征
  private String deviceID = null;

  public License(long startTime, long endTime, long bindTime, String bindOptUser, String licenseID,
      String licensePassword, String terminalID, String customName, String customID,
      String deviceID) {
    this.startTime = startTime;
    this.endTime = endTime;
    this.bindTime = bindTime;
    this.licensePassword = licensePassword;
    this.bindOptUser = bindOptUser;
    this.licenseID = licenseID;
    this.terminalID = terminalID;
    this.customName = customName;
    this.customID = customID;
    this.deviceID = deviceID;
  }

  public String getLicensePassword() {
    return licensePassword;
  }

  public long getStartTime() {
    return startTime;
  }

  public long getEndTime() {
    return endTime;
  }

  public long getBindTime() {
    return bindTime;
  }

  public String getBindOptUser() {
    return bindOptUser;
  }

  public String getLicenseID() {
    return licenseID;
  }

  public String getTerminalID() {
    return terminalID;
  }

  public String getCustomName() {
    return customName;
  }

  public String getCustomID() {
    return customID;
  }

  public String getDeviceID() {
    return deviceID;
  }

  @Override
  public String toString() {
    return "[开始时间：" + startTime + ", 结束时间：" + endTime + ", 绑定时间：" + bindTime + ", 绑定用户："
        + bindOptUser + ", 授权编号：" + licenseID + ", 终端编号：" + terminalID + ", 客户名称：" + customName
        + ", 客户编号：" + customID + ", 绑定设备特征：" + deviceID + "]";
  }

  public Object clone() throws CloneNotSupportedException {
    Object o = null;
    try {
      o = (License) super.clone();
    } catch (CloneNotSupportedException e) {}
    return o;
  }
}
